function(doc) {
	if (doc.type === "membership") {
		emit([doc.email, doc.role, doc.groupName], doc);
	}
}